* configure: Extend test for working `const' keyword to handle AIX
authorJim Blandy <jimb@redhat.com>
Tue, 30 Mar 1993 20:33:58 +0000 (20:33 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 30 Mar 1993 20:33:58 +0000 (20:33 +0000)
3.2 cc.

configure1.in

index ee068601bffb408728d9ecf73fb5160aa5de70e0..fcce3ada2c4117a24ccbec0f364ac8dd3105e09f 100755 (executable)
@@ -884,11 +884,14 @@ echo "Checking if the compiler supports \`const'."
 rm -f conftest*
 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
 echo "
-main() { exit(0); } t() { /* Ultrix mips cc rejects this.  */
+main() { exit(0); } t() {
+/* Ultrix mips cc rejects this.  */
 typedef int charset[2]; const charset x;
 /* SunOS 4.1.1 cc rejects this. */
 char const *const *p;
 char **p2;
+/* AIX 3.2 cc rejects this.  */
+p += p ? p-p : 0;
 /* HPUX 7.0 cc rejects these. */
 ++p;
 p2 = (char const* const*) p;